﻿using SqlSugar;

namespace Minotaur.App.Domains.Model.ButtonInfo
{
    /// <summary>
    /// 操作信息
    /// </summary>
    [SugarTable("Button")]
    public class Button : EntityBase
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [SugarColumn(ColumnName = "autoid", IsIdentity = true, IsPrimaryKey = true)]
        public virtual long AutoId { get; set; }
        /// <summary>
        /// 按钮id
        /// </summary>
        [SugarColumn(ColumnName = "btnid")]
        public virtual long? BtnId { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        [SugarColumn(ColumnName = "icon")]
        public virtual string? Icon { get; set; }
        /// <summary>
        /// 按钮类型
        /// </summary>
        [SugarColumn(ColumnName = "type")]
        public virtual string? Type { get; set; }
        /// <summary>
        /// 按钮大小
        /// </summary>
        [SugarColumn(ColumnName = "size")]
        public virtual string? Size { get; set; }
        /// <summary>
        /// 值
        /// </summary>
        [SugarColumn(ColumnName = "value")]
        public virtual string? Value { get; set; }
        /// <summary>
        /// 形状
        /// </summary>
        [SugarColumn(ColumnName = "shape")]
        public virtual string? Shape { get; set; }
        /// <summary>
        /// 位置
        /// </summary>
        [SugarColumn(ColumnName = "loaction")]
        public virtual string? Loaction { get; set; }
        /// <summary>
        /// 用于流程
        /// </summary>
        [SugarColumn(ColumnName = "isuseflow")]
        public virtual bool? Isuseflow { get; set; }
        /// <summary>
        /// 顺序
        /// </summary>
        [SugarColumn(ColumnName = "sequence")]
        public virtual long? Sequence { get; set; }

        [Navigate(NavigateType.OneToMany, nameof(ButtonInfoRes.BtnId))]
        public virtual List<ButtonInfoRes> Res { get; set; }

    }
}
